Skip to content

Adds a presolver function to staggered model#59

Merged
jmartfrut merged 1 commit into
mainfrom
presolver
Nov 11, 2025
Merged

Adds a presolver function to staggered model#59
jmartfrut merged 1 commit into
mainfrom
presolver

Conversation

@jmartfrut
Copy link
Copy Markdown
Collaborator

Adds a presolver function argument to the solve! function for StaggeredModel.

This function allows the user to perform actions before each staggered step, enabling more advanced control over the simulation.

Also, makes project dirichlet an option for the static nonlinear model.

Adds a `presolver` function argument to the `solve!` function for `StaggeredModel`.

This function allows the user to perform actions before each staggered
step, enabling more advanced control over the simulation.

Also, makes project dirichlet an option for the static nonlinear model.
@github-actions
Copy link
Copy Markdown

Benchmark Results (Julia v1)

Time benchmarks
main fed3722... main / fed3722...
Constitutive models/Visco-elastic Ψ 0.0481 ± 0.027 ms 0.0484 ± 0.027 ms 0.994 ± 0.78
Constitutive models/Visco-elastic ∂Ψu 0.0633 ± 0.0035 ms 0.0633 ± 0.0036 ms 0.999 ± 0.08
Constitutive models/Visco-elastic ∂Ψuu 0.11 ± 0.014 ms 0.112 ± 0.017 ms 0.986 ± 0.2
Simulations/StaticMechanicalDirichlet 0.154 ± 0.0089 s 0.153 ± 0.0077 s 1.01 ± 0.078
Simulations/StaticMechanicalNeumann 0.193 ± 0.0085 s 0.129 ± 0.015 s 1.49 ± 0.18
Simulations/ViscoElastic 8.06 s 8.06 s 1
Tensor algebra/δδ_λ_2d 30 ± 0 ns 30 ± 0 ns 1 ± 0
Tensor algebra/δδ_μ_2d 30 ± 0 ns 30 ± 0 ns 1 ± 0
time_to_load 2.46 ± 0.013 s 2.48 ± 0.023 s 0.995 ± 0.011
Memory benchmarks
main fed3722... main / fed3722...
Constitutive models/Visco-elastic Ψ 1.25 k allocs: 0.0794 MB 1.25 k allocs: 0.0794 MB 1
Constitutive models/Visco-elastic ∂Ψu 1.37 k allocs: 0.0917 MB 1.37 k allocs: 0.0917 MB 1
Constitutive models/Visco-elastic ∂Ψuu 2.31 k allocs: 0.158 MB 2.31 k allocs: 0.158 MB 1
Simulations/StaticMechanicalDirichlet 1.7 M allocs: 0.118 GB 1.7 M allocs: 0.118 GB 1
Simulations/StaticMechanicalNeumann 2.19 M allocs: 0.14 GB 1.43 M allocs: 0.0908 GB 1.55
Simulations/ViscoElastic 0.127 G allocs: 8.28 GB 0.127 G allocs: 8.28 GB 1
Tensor algebra/δδ_λ_2d 0 allocs: 0 B 0 allocs: 0 B
Tensor algebra/δδ_μ_2d 0 allocs: 0 B 0 allocs: 0 B
time_to_load 0.149 k allocs: 11.1 kB 0.149 k allocs: 11.1 kB 1

@jmartfrut jmartfrut merged commit bf81795 into main Nov 11, 2025
4 checks passed
@jmartfrut jmartfrut deleted the presolver branch November 11, 2025 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant